<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('AdminTag/index')}">{:L('PORTAL_ADMINTAG_INDEX')}</a></li>
			<li><a href="{:U('AdminTag/add')}">{:L('PORTAL_ADMINTAG_ADD')}</a></li>
		</ul>
		<form method="post" class="js-ajax-form" action="">
			<div class="table-actions">
				<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminTag/delete')}" data-subcheck="true" data-msg="您确定删除吗？">{:L('DELETE')}</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="50">ID</th>
						<th>{:L('NAME')}</th>
						<th>{:L('POSTS_NUM')}</th>
						<th>{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>					
					<foreach name="tag" item="vo">
					<tr>
						<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo['tag_id']}" title="ID:{$vo['tag_id']}"></td>
						<td>{$vo['tag_id']}</td>
						<td>{$vo['tag_name']}</td>
						<td>{$vo['num']}</td>
						<td>
							<a href="{:U('AdminTag/edit',array('id'=>$vo['tag_id']))}">{:L('EDIT')}</a> | 
							<a href="{:U('AdminTag/delete',array('id'=>$vo['tag_id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						</td>
					</tr>	
					</foreach>											
				</tbody>
				
			</table>
			
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	
</body>
</html>